﻿namespace DaveSexton.Labs.Tests
{
#if NETFX_CORE
	[System.Composition.PartNotDiscoverable]
#else
	[System.ComponentModel.Composition.PartNotDiscoverable]
#endif
	public class BaseLab
#if WINDOWS_PHONE
 : PhoneLab
#elif SILVERLIGHT
 : SilverlightLab
#elif WINDOWS
 : WindowsLab
#elif NETFX_CORE
 : WindowsStoreLab
#else
 : ConsoleLab
#endif
	{
		public override string FormatSourceCode(string source)
		{
			return source.Replace("\t", "  ");
		}

		public override string FormatSourceXaml(string source)
		{
			return source.Replace("\t", "  ");
		}

#if !SILVERLIGHT && !WINDOWS && !NETFX_CORE
		protected override void Main()
		{
			TraceLine("UI labs are not supported in console applications.");
		}
#endif
	}
}